SftTree/NET 2.0

Samples

Softel vdm, Inc.

SftTree/NET includes sample code for both VB.NET and C#. Even though C++ samples are not included, the Syntax section always shows the C++ syntax.

All sample code given in the Example section of a property, method or event applies to Visual Basic and C# unless noted.  The code samples usually assume that a tree control has been added to a form. All relevant properties, even properties that could be set at design-time using the Properties window, are set at run-time to show any dependencies.

The following samples can be found in the folder C:\Program Files\Softelvdm\SftTree NET 2.0\Samples:

VB Sample

C# Sample

Description

DemoSample

DemoSample

Shows an overview of the tree control's features.

DragDrop

DragDrop

Demonstrates copying/moving items within the same and between two tree controls using drag & drop.

EventViewer

EventViewer

Inspects events generated by the tree control.

ExploreAssembly

ExploreAssembly

Shows dynamic loading ("load as you go") of the tree control.

XMLProps

XMLProps

Shows options using checkboxes and radiobuttons, created using an XML document.

These samples are referenced throughout our help topics:

VB Sample

C# Sample

Description

MergeSample1

MergeSample1

Demonstrates vertical and horizontal cell merging (MergeStyle = EmptyCells), cell images, rotated text in row headers and column headers.

MergeSample2

MergeSample2

Demonstrates vertical and horizontal cell merging (MergeStyle = SameText).

EditSample1

EditSample1

Demonstrates cell editing with edit controls and combo boxes.

CategorySample1

CategorySample1

Shows how to implement a simple toolbox-like category list.

DragDropSample1

DragDropSample1

Demonstrates drag & drop within the tree control, dragging data to a textbox and dropping data on the tree control from Windows Explorer.

PartsSample1

PartsSample1

Demonstrates how to add the various parts to cells, like checkboxes, images, progressbars, buttons, dropdown buttons, how to handle events and cell orientation.

PartsSample2

PartsSample2

Demonstrates how to add items and child items, with checkboxes and radiobuttons.

PartsSample3

PartsSample3

Demonstrates cell images, cell tags, column reordering, sorting and sorting indicators in column headers.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com